# -*- encoding: utf-8 -*-
#2.一个列表中有重复数字，编写程序，移除重复数字
for i in range(1,10):
    for j in range (1,i+1):
        print('%d*%d=%d'%(j, i, i*j),end=' ')
    print()

print("-------------------------------------")

l1=[1,2,3,2,4,5,56,7,45,1,2,3,]
l2=[1,2,3,5,65,42,15,1,23,]
print([i for i in l1 if i in l2])
print(set(l1)&set(l2))